import {
	defineStore
} from 'pinia'
import * as API from "../api/api.js"
export const useShareStore = defineStore('useShare', {
	state: () => {
		return {
      shareInfo: {
        title: "2024廊坊首届全民健康走跑大会火热进行中，奔跑廊坊，体育场等你！",
        imageUrl: "https://model-capability.oss-cn-beijing.aliyuncs.com/pro/healthRun/share-car.png",
        query: "shareType=circle",
        path: "/pages/chat/chat"
      }
		}
	},
	actions: {
    handleShare() {
      uni.showShareMenu({
        withShareTicket: true,
        menus: ['shareAppMessage', 'shareTimeline']
      })
    }
  }
})

